﻿namespace MicroCloud.Authorization
{
    /// <summary>
    /// 数据权限模块
    /// </summary>
    [Description("数据权限模块")]
    public class DataAuthorizationPack
        : DataAuthorizationPackBase<DataAuthManager, DataAuthCache, EntityInfo, EntityInfoInputDto, EntityRole, EntityRoleInputDto, long, EntityUser, EntityUserInputDto, long>
    {
        /// <summary>
        /// 将模块服务添加到依赖注入服务容器中
        /// </summary>
        /// <param name="services">依赖注入服务容器</param>
        /// <returns></returns>
        public override IServiceCollection AddServices(IServiceCollection services)
        {
            services.AddSingleton<IMapTuple, AutoMapperAuthorizationConfiguration>();

            return base.AddServices(services);
        }

    }
}